package com.yq.cp.utils;


import java.util.Random;

public class RandomUtil {
    public static Long a(){

        Random random = new Random();
        // 生成 0-9 随机整数
        long l = random.nextLong();
        return Math.abs(l);
    }

    public static Long b(int m){

        Random random = new Random();
        // 生成 0-9 随机整数
        long l = random.nextInt(m);
        return Math.abs(l);
    }

    public static void main(String[] args) {
        for (int i = 0; i < 100; i++) {
            System.out.println(b(10000));
        }
    }
}
